-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PrefixesWithCommunity #20
Conversation
5684302
to
a1d12c6
Compare
internal/controller/api_to_config.go
Outdated
advs[p] = &frr.AdvertisementConfig{Prefix: p, IPFamily: family} | ||
} | ||
|
||
prefixToCommunities := map[string]sets.Set[string]{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
communitiesForPrefix*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
} | ||
}, | ||
validate: func(ppV4 []config.Peer, ppV6 []config.Peer, nodes []v1.Node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add
- a test where we have explicit prefixes, only one with community?
- a test where we have large communities
- a test where we have one address with multiple communities
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, turns out we didn't have the code to support large communities, added a new commit (copy from MetalLB)
35126e5
to
e9e24bb
Compare
Copy of the relevant parts from MetalLB Signed-off-by: Ori Braunshtein <[email protected]>
Signed-off-by: Ori Braunshtein <[email protected]>
Signed-off-by: Ori Braunshtein <[email protected]>
e9e24bb
to
0715412
Compare
Support parsing community prefixes